package com.wang.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author WangZai
 * @since 2023-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@TableName(value = "small_category")
public class SmallCategory extends Model<SmallCategory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "small_category_id", type = IdType.AUTO)
    private Integer smallCategoryId;

    private Integer largeCategoryId;

    private String smallCategoryName;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Boolean deleted;


    @Override
    protected Serializable pkVal() {
        return this.smallCategoryId;
    }

}
